Envelope Curve Editor with SVG
import { Draggable } from "gsap/dist/Draggable"
useGSAP((context) => {
let mm = gsap.matchMedia();
mm.add("(min-width: 100px)", () => {
gsap.to('.line_path_reveal', {
width: '500',
duration: 5,
repeat: -1,
ease: 'none'
})
});
gsap.registerPlugin(Draggable)
Draggable.create(".point_1",)
// console.log(context);
// return () => {}
}, { scope: container })
FireFox
Not sure if this is a bug or me, but development in Firefox did not update the UI correctly. The width
value would only update on user interaction (clicking, dragging, inspector tweaking). I've moved to Chrome to work on this as normal
-
Draggable - Get current object postion and save it - GSAP - GreenSock
-
Building draggable Component with React and TypeScript - YouTube
-
html - How to make a grid (like graph paper grid) with just CSS? - Stack Overflow
-
Errors when trying to use Draggable plugin with Next.js / React - GSAP - GreenSock
-
Getting error
Cannot use import statement outside a module
when importing Flip - GSAP - GreenSock